package com.competition.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "product_order")
public class ProductOrder implements Serializable {

    @Id
    @Column(name = "product_order_id")
    private String productOrderId;

    @Column(name = "product_id")
    private String productId;

    @Column(name = "receipt_id")
    private String receiptId;

    @Column(name = "user_id")
    private String userId;

    @TableField(exist = false)
    private Product product;

    @TableField(exist = false)
    private ReceiptInfo receiptInfo;

    @TableField(exist = false)
    private User user;


}
